package cn.rkylin.oms.system.project.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.system.project.vo.ProjectVO;

/**
 * 店铺数据访问层
 *
 * @author wangxiaoyi
 * @version 1.0
 * @created 13-1月-2017 09:11:13
 */
@Repository(value = "projectManageDAO")
public class ProjectManageDAOImpl implements IProjectManageDAO {
    // 常量定义
    private static final String STMT_SELECT_ONE = "pageSelectProject";

    @Autowired
    protected IDataBaseFactory dao;

    /**
     * 查询项目
     *
     * @param projectVO
     */
    public ProjectVO findByWhere(ProjectVO projectVO) throws Exception {
        ProjectVO project = dao.findForObject(STMT_SELECT_ONE, projectVO);
        return project;
    }
}